<!--{if $cat[icon]}-->
	<!--{eval $valueparse = parse_url($cat['icon']);}-->
    <!--{if !isset($valueparse['host'])}-->
        <!--{eval $cat[icon] = $_G['setting']['attachurl'].'common/'.$cat[icon].'?'.random(6);}-->
    <!--{/if}-->
<!--{else}-->
    <!--{eval $cat[icon] = IMGDIR . "/icon_forum_default.png";}-->
<!--{/if}-->
<div class="film_box cl">
    <div class="box_title">
    	<div class="left_title"><img src="{$cat[icon]}" width="28" height="26"/><span><a href="{if !empty($caturl)}$caturl{else}forum.php?name={echo locdau($cat[name]);}&gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}"><h1>$cat[name]</h1></a></span></div><!--End left_title-->
        <div class="right_title">
            <ul>
                <!--{loop $cat[forums] $forumid}-->
                <!--{eval $forum=$forumlist[$forumid];}-->
                <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 
                'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
                <li><a href="$forumurl"{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if} onmouseover="showthis($cat[fid],$forumid)"><h2>$forum[name]</h2>
                        <!--{if $forum[todayposts] && !$forum['redirect']}-->
                        <em class="xw0 xi1 x-add">(<strong>$forum[todayposts]</strong>)</em>
                        <!--{/if}-->
                        </a></li>
                 <!--{/loop}-->
            </ul>
        </div><!--End right_title-->
	</div>
    <div class="cl">&nbsp;</div>
        <!--{loop $listpost_wforum $key $thread}-->
            <!--{if !$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
                <!--{if $thread['related_group'] == 0 && $thread['closed'] > 1}-->
                    <!--{eval $thread[tid]=$thread[closed];}-->
                <!--{/if}-->
            <!--{/if}-->
        <div class="li_listf">
            <!--{if !$_G['gp_archiveid'] && $_G['forum']['ismoderator']}-->
                <div style="position: absolute;padding:2px;background:#FFF">
                <!--{if $thread['fid'] == $_G[fid]}-->
                    <!--{if $thread['displayorder'] <= 3 || $_G['adminid'] == 1}-->
                        <input onclick="tmodclick(this)" type="checkbox" name="moderate[]" value="$thread[tid]" />
                    <!--{else}-->
                        <input type="checkbox" disabled="disabled" />
                    <!--{/if}-->
                <!--{else}-->
                    <input type="checkbox" disabled="disabled" />
                <!--{/if}-->
                </div>
            <!--{/if}-->
            <div class="c cl">
            	<div class="img_bxl">
                    <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra" {if $thread['isgroup'] == 1 || $thread['forumstick']} {else} onclick="atarget(this)"{/if} title="$thread[subject]" class="z">
                        <!--{if $thread['picurl']}-->
                            <img src="$thread[picurl]" alt="$thread[subject]" width="175px" />
                        <!--{elseif $thread['picatt']}-->
                            <!--{eval $keypic = rawurlencode(md5($thread['tid'].'|180|180'))}-->
                            <img src="forum.php?mod=image&aid=$thread['picatt']&size=180x180&key=$keypic&atid=$thread['tid']"  alt="$thread[subject]" title="$thread[subject]" />
                        <!--{else}-->
                            <!--{if $thread['author']}-->  
                               <!--{avatar($thread[authorid],big)}-->
                            <!--{else}--> 
                               <img src="{IMGDIR}/frame_avatar.gif" alt="$_G[setting][anonymoustext]" title="$_G[setting][anonymoustext]" />
                            <!--{/if}-->
                        <!--{/if}-->
                    </a>
                </div>
            </div>
            <div class="btl_film"><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_G['gp_archiveid']}archiveid={$_G['gp_archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} {else} onclick="atarget(this)"{/if} title="$thread[message]"><h4><!--{if in_array($thread['displayorder'], array(1, 2, 3, 4))}-->[{lang thread_stick}] <!--{/if}-->$thread[subject]</h4></a></div>
            <div class="cl inline xg1">
                <!--{if $thread['authorid'] && $thread['author']}-->
                <a href="home.php?mod=space&uid=$thread[authorid]" c="1">$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
            <!--{else}-->
                $_G[setting][anonymoustext]
            <!--{/if}--> - $thread[dateline]
                <span class="y tar"><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra" class="xi2" title="$thread[replies] {lang reply}">$thread[replies]</a> / <em title="{if $thread['isgroup'] != 1}$thread[views]{else}{$groupnames[$thread[tid]][views]}{/if} {lang show}"><!--{if $thread['isgroup'] != 1}-->$thread[views]<!--{else}-->{$groupnames[$thread[tid]][views]}<!--{/if}--></em>
                </span>
            </div>
        </div>
        <!--{/loop}-->
    <!--{if $multipage}--><div class="pgs cl mtm add_pad_pare">{echo $multipage}</div><!--{/if}-->
</div>